from django.db import models

__author__ = 'Edgard JR'


class Pagina(models.Model):
    titulo_pagina = models.CharField(max_length=30, null=False, unique=True, blank=False)
    titulo_texto = models.CharField(max_length=30, null=False, blank=False)
    tipo = models.CharField(max_length=30, null=False, unique=True, blank=False)
    conteudo = models.TextField(max_length=2000, null=True)

    def __unicode__(self):
        return self.titulo_pagina

    class Meta:
        app_label = 'bolosdalu'